import axios from 'axios'
import config from '../apiConfig'
const baseApi = "http://localhost:8989";//生产环境

const $ajaxUploadFile = params => axios.post(baseApi+'/file/upload', params, config)
const $ajaxDownloadFile = params => axios.post(baseApi+'/file/downLoad', params, config)

// const $ajaxGroupList = params => axios.post(baseApi+'contacts/groupList', params, config)
// const $ajaxDeptList = params => axios.post(baseApi+'contacts/deptList', params, config)
// const $ajaxUserList = params => axios.post(baseApi+'contacts/userList', params, config)
// const $ajaxUserDetails = params => axios.post(baseApi+'contacts/details', params, config)
// const $ajaxSearch = params => axios.post(baseApi+'contacts/searchUsers', params, config)

// const $ajaxFrequent = params => axios.post(baseApi+'contacts/frequent', params, config)
// const $ajaxAddCommonUse = params => axios.post(baseApi+'contacts/addFrequent', params, config)
// const $ajaxDelCommonUse = params => axios.post(baseApi+'contacts/deleteFrequent', params, config)
// const $ajaxJudgeExecutive = params => axios.post(baseApi+'contacts/judgeExecutive', params, config)

export default {
  $ajaxUploadFile: $ajaxUploadFile,
  $ajaxDownloadFile: $ajaxDownloadFile
}
